<template>
    <div>
        <h1>我是登录页面</h1>
        <button @click="login">登录</button>
    </div>
</template>

<script>
    export default {
        name: "",
        methods:{
            login(){
                localStorage.setItem('token', '7788djdjsdcnjscnjcnjncjwcw')
                this.$router.push({path: '/'})
            }
        }
    }
</script>

<style scoped>

</style>
